package com.lzw.controller;

import com.lzw.domain.vo.ResponseVO;
import com.lzw.service.Line4Service;
import com.lzw.service.Line6Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin(origins = "*") //开启跨域请求
public class Line6Controller {
    @Autowired
    private Line6Service line6Service;

    @PostMapping("/line6GetMsg")
    public List<ResponseVO> line6GetMsg(@RequestParam("procedureName") String procedureName){
        List<ResponseVO> list = line6Service.line6GetMsg(procedureName);
        return list;
    }
}
